//万昱柔 2025/3/10
cc.Class({
    extends: cc.Component,

    properties: {
        //拿到钢管预制体
        pipePre: cc.Prefab,

    },



    // onLoad () {},
    //预制体
    start() {
        this.schedule(() => {
            this.createPipe();
        }, 2, cc.macro.REPEAT_FOREVER, 0.1);

    },
    createPipe() {

        //实例化
        const pipe = cc.instantiate(this.pipePre);
        //设置父节点
        pipe.parent = this.node;
        pipe.x = 200;
        pipe.getComponent("Pipe").move();

    }


    // update (dt) {},
});
